ubuntu 22.04,Linux的任一發行版本應該都行。
雖然CMake的主要功能之一是可以跨平台開發,但是目前我還沒有這方面的經驗,因此本系列不會介紹到跨平台的功能,有此需求的話可以參考30 天 CMake 跨平台之旅。
g++ : C++編譯器
kai@esoc:~$ g++ --version
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
GNU Make 4.3 : C/C++編譯工具程式
kai@esoc:~$ make --version
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
CMake 3.22.1 : 在本系列是產生makefile的工具程式
kai@esoc:~$ cmake --version
cmake version 3.22.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
Visual Studio Code : 有很多好用的插件,最重要的是有GitHub Copilot。
How to Enable github copilot for free to students